﻿using Cmp.Web.Common;
using Cmp.Web.IRepository;
using Cmp.Web.IService;
using Cmp.Web.Model;

namespace Cmp.Web.Service
{
    /// <summary>
    /// 医生数据业务处理实现
    /// </summary>
    public class DoctorService : IDoctorService
    {
        private readonly IDoctorProvide doctorPorvide;
        public DoctorService(IDoctorProvide baseRepository)
        {
            doctorPorvide = baseRepository;
        }

        public Task<List<DoctorInfo>> GetDoctorInfoList(out ExceptionAll exception)
        {
            return doctorPorvide.GetDoctorInfoList(out exception);
        }

        public Task<List<DoctorInfo>> GetDoctorInfoList(string DeptCode, out ExceptionAll exception)
        {
           return doctorPorvide.GetDoctorInfoListByDeptCode(DeptCode, out exception);
        }
    }
}